/**
 * Created by shenhai on 15/9/5.
 */

module.exports = function (app) {
    var community = require('../../controllers/mis/community/community-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityList/:page/:size', community.communityList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityList', community.communityList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityAdd', community.communityAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityEdit', community.communityEdit);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communitySwitch', community.communitySwitch);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/test', community.test);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityImport', community.communityImport);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityModify', community.communityModify);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityImportRecord/:page/:size', community.communityImportRecord);


    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/supplementList/:page/:size', community.supplementList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/supplementStatusUpdate', community.supplementStatusUpdate);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/applyList/:page/:size', community.applyListList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/applyPass', community.applyPass);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/applyReject', community.applyReject);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/applyPassCheck', community.applyPassCheck);

    //小区地图
    //app.get('/rest/' + RESTFullServiceVersion + '/mis/community/communityLocationList/:type/:name', community.communityLocationList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/community/communityByLocationList', community.communityByLocationList);
    app.get('/rest/' + RESTFullServiceVersion + '/mis/community/communityCountList/:type', community.communityCountList);

};